/*
 * Copyright (c) 2008, Petr Panteleyev
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 * 
 *    1. Redistributions of source code must retain the above copyright notice, 
 *       this list of conditions and the following disclaimer.
 *    2. Redistributions in binary form must reproduce the above copyright notice, 
 *       this list of conditions and the following disclaimer in the documentation 
 *       and/or other materials provided with the distribution.
 *    3. The name of the author may not be used to endorse or promote products 
 *       derived from this software without specific prior written permission.
 *  
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.panteleyev.gclient;

import java.util.ResourceBundle;

import org.panteleyev.utilities.ArrayResourceBundle;

/**
 *
 * @author Petr Panteleyev
 */
enum L10N {
    BLOGSPOT_MENU_NAME(12),
    
    /* Profile Actions */
    DASHBOARD_ACTION(16),
    ALBUMS_ACTION(17),

    /* GBProfileDialog */
    GBPROFILE_DIALOG_COMM_LOAD_CHECKBOX(62),
    GBPROFILE_DIALOG_LINE_BREAKS_CHECKBOX(63),
    
    /* Insert Album Dialog */
    IAD_TITLE(0),
    IAD_ALBUM_LIST_LABEL(1),
    IAD_ALBUM_TITLE_EDIT_LABEL(2),
    
    /* Post Picture Dialog */
    PPD_TITLE(3),
    PPD_ALBUM_LIST_LABEL(4),
    PPD_LINK_TO_ORIGINAL_CHECK(5),
    PPD_IMAGE_BORDER_CHECK(6),
    PPD_FULL_SIZE_RADIO(7),
    PPD_REDUCED_SIZE_RADIO(8),
    
    ALBUM_DIALOG_TITLE(32),
    ALBUM_DIALOG_TITLE_LABEL(33),
    ALBUM_DIALOG_DATE_LABEL(34),
    ALBUM_DIALOG_DESCR_LABEL(35),
    ALBUM_DIALOG_LOCATION_LABEL(36),
    ALBUM_DIALOG_PRIVATE_CHECKBOX(37),
    
    /* Picasa Gallery Frame */
    PGF_TITLE(18),
    PGF_TABLE_HEADER_TITLE(19),
    PGF_TABLE_HEADERS_DESCR(20),
    PGF_TABLE_HEADERS_LOCATION(21),
    PGF_TABLE_HEADERS_DATE(22),
    PGF_ALBUM_PROPS_ACTION(23),
    PGF_COPY_LINK_ACTION(24),
    PGF_ALBUM_WEB_ACTION(25),
    PGF_CREATE_ALBUM_ACTION(26),
    
    /* PicturePublishDialog */
    PICTURE_PUBLISH_DIALOG_TITLE(27),
    PPD_TABLE_BORDER_LABEL(46),
    PPD_BORDER_LABEL(47),
    PPD_COLUMNS_LABEL(48),
    PPD_FULL_SIZE_BUTTON(49),
    PPD_REDUCED_SIZE_BUTTON(50),
    PPD_COPY_TO_CLIPBOARD_RADIO(51),
    PPD_COPY_TO_EDITOR_RADIO(52),
    PICTURE_PUBLISH_DIALOG_LINK_TO_ORIGINAL_CHECK(53),
    PICTURE_PUBLISH_DIALOG_LINK_BOARD_LABEL(54),
    PICTURE_PUBLISH_DIALOG_TARGET_BOARD_LABEL(55),
    
    /* Album Window */
    ALBUM_WINDOW_UPLOAD_PHOTOS_ACTION(9),
    ALBUM_WINDOW_COPY_RAW_LINK_ACTION(10),
    ALBUM_FRAME_ALBUM_MENU_NAME(15),
    ALBUM_FRAME_PHOTO_PROPS_ACTION(28),
    ALBUM_FRAME_COPY_LINK_ACTION(29),
    ALBUM_FRAME_PHOTO_WEB_ACTION(30),
    ALBUM_FRAME_PUBLISH_PHOTOS_ACTION(31),
    
    /* CommentsFrame */
    COMMENTS_FRAME_TITLE(43),
    COMMENTS_FRAME_ADD_COMMENT_ACTION(38),
    COMMENTS_FRAME_DELETE_COMMENT_ACTION(39),
    COMMENTS_FRAME_TABLE_DATE(40),
    COMMENTS_FRAME_TABLE_AUTHOR(41),
    COMMENTS_FRAME_TABLE_SUBJECT(42),
    COMMENTS_FRAME_NO_SUBJECT(44),
    
    /* CommentsEditFrame */
    COMMENTS_EDIT_FRAME_TITLE(45),

    /* GPhotoPropertiesDialog */
    PHOTO_PROPS_DIALOG_WIDTH_LABEL(56),
    PHOTO_PROPS_DIALOG_HEIGHT_LABEL(57),
    PHOTO_PROPS_DIALOG_SIZE_LABEL(58),
    PHOTO_PROPS_DIALOG_CAMERA_LABEL(59),
    PHOTO_PROPS_DIALOG_VENDOR_LABEL(60),
    PHOTO_PROPS_DIALOG_TITLE(61),
        
    /* Post Window */
    INSERT_PICASA_ALBUM_ACTION(13),
    UPLOAD_PHOTO_ACTION(14),    
    POST_WINDOW_LABELS_LABEL(11);
    
    private String l10nValue;
    
    public String s() { return l10nValue; }
    
    L10N(int key) {
        l10nValue = ((ArrayResourceBundle)ResourceBundle.getBundle("org.panteleyev.gclient.L10NStrings")).getString(key);
    }    

}
